<?php
App::uses('AppModel', 'Model');
/**
 * Alumno Model
 *
 * @property User $User
 * @property Asistencia $Asistencia
 * @property Nota $Nota
 * @property Materiasoptativa $Materiasoptativa
 * @property Pago $Pago
 * @property Paralelo $Paralelo
 * @property Parciale $Parciale
 * @property Planespago $Planespago
 */
class Alumno extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasOne associations
 *
 * @var array
 */
	public $hasOne = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'alumno_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Asistencia' => array(
			'className' => 'Asistencia',
			'foreignKey' => 'alumno_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Nota' => array(
			'className' => 'Nota',
			'foreignKey' => 'alumno_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);


/**
 * hasAndBelongsToMany associations
 *
 * @var array
 */
	public $hasAndBelongsToMany = array(
		'Materiasoptativa' => array(
			'className' => 'Materiasoptativa',
			'joinTable' => 'alumnos_materiasoptativas',
			'foreignKey' => 'alumno_id',
			'associationForeignKey' => 'materiasoptativa_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'Pago' => array(
			'className' => 'Pago',
			'joinTable' => 'alumnos_pagos',
			'foreignKey' => 'alumno_id',
			'associationForeignKey' => 'pago_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'Paralelo' => array(
			'className' => 'Paralelo',
			'joinTable' => 'alumnos_paralelos',
			'foreignKey' => 'alumno_id',
			'associationForeignKey' => 'paralelo_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'Parciale' => array(
			'className' => 'Parciale',
			'joinTable' => 'alumnos_parciales',
			'foreignKey' => 'alumno_id',
			'associationForeignKey' => 'parciale_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'Planespago' => array(
			'className' => 'Planespago',
			'joinTable' => 'alumnos_planespagos',
			'foreignKey' => 'alumno_id',
			'associationForeignKey' => 'planespago_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
